home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / dcom / modems-part1 / 1356 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mix.com!sluggy
  2. From: billy@mix.com
  3. Newsgroups: comp.dcom.modems
  4. Subject: Re: Looking for Autobauding Algorithms
  5. Date: 12 Jan 1996 15:28:01 -0700
  6. Organization: Billy's Place
  7. Sender: root@primenet.com
  8. Message-ID: <4d6n9h$p2o@nnrp1.news.primenet.com>
  9. References: <PORTZ.96Jan12084911@delilah.westend.com>
  10. X-Posted-By: billy@usr6.primenet.com
  11.  
  12. Michael Portz <portz@westend.com> writes:
  13.  
  14. > I have a question concerning the realization of algorithms to
  15. > automatically detect the incoming baudrate: 
  16.  
  17. > - What algorithms are used?
  18. > - Can it be done with a 16550-stylish UART or does it have to be
  19. >   something like a microcontroller.
  20.  
  21. This is done by settingthe port to a certain speed, like 9600, then
  22. having the usr type a char such as a return.  Depending on the speed
  23. this will either generate a return or some other char, which is then
  24. looked up in a table to get the speed that corresponds with it.
  25.  
  26. I don't know about the 16550 in particular, but with some UARTs you
  27. have to drop to 2400 or so and try again if the 9600 test fails.  And
  28. I have to use different lookup tables for different hardware, at least
  29. in the DEC world.
  30.  
  31. Billy Y..
  32.